'''
Created on 21.11.2013

@author: Danila Oleynik 
'''

from django.contrib.auth.models import User
from django.db import models


class BaseObject(models.Model):
    '''
    Basic object model. Used for interconnection between different types of objects
    '''
    active_flag = models.BooleanField(default=True)
    ins_date = models.DateTimeField(auto_now_add=True)
    ins_user = models.ForeignKey(User, related_name='inserted_by')
    upd_date = models.DateTimeField(auto_now=True)
    upd_user = models.ForeignKey(User, related_name='updated_by')
    
    class Meta:
        app_label = 'condo'
